{extend name="layout/datagrid" /}
{block name="content_header"}
<h1>
    <a href="/recharge">充值管理</a>
    <small>recharge tables</small>
</h1>
<ol class="breadcrumb">
    <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
    <li><a href="/recharge/">财务</a></li>
    <li class="active">充值管理</li>
</ol>
{/block}
{block name="content"}
<div class="box">
    <div class="box-header">
        <!-- search -->
        <form class="navbar-form"
              action="">
            <div class="form-group">
                <label>充值时间</label> <input type="text" name="date1"
                                           class="form-control input-sm xsui-jedatepicker" placeholder="起始时间"
                                           title="" value="{$search.date1}"> - <input type="text"
                                           name="date2" class="form-control input-sm xsui-jedatepicker"
                                           placeholder="终止时间" title="" value="{$search.date2}"
                                           style="margin-right: 10px">
            </div>
            <div class="form-group">
                <label>玩家ID/充值单号</label> <input type="text" name="word"
                                              class="form-control input-sm" placeholder="玩家ID/充值单号" title="会员ID"
                                              value="{$search.word}">
            </div>
            <button type="submit" class="btn btn-sm btn-default">搜索</button>
        </form>
    </div>
    <!-- /.box-header -->
    <div class="box-body">
        <table class="xsui-datagrid table table-condensed table-bordered table-striped table-hover">
            <thead>
                <tr>
                    <th>#</th>
                    <th>编号ID</th>
                    <th>玩家ID</th>
                    <th>玩家帐号</th>
                    <th>玩家名称</th>
                    <th>充值单号</th>
                    <th>充值金额</th>
                    <th>充值渠道</th>
                    <th>充值说明</th>
                    <th>充值时间</th>
                    <th>状态</th>
                </tr>
            </thead>
            <tbody>
                {foreach name="list" item="vo"}
                <tr data-key="{$vo.account}">
                    <td class="xsui-rowid" title="{$vo.id}"></td>
                    <td title="{$vo.id}">{$vo.id}</td>
                    <td>{$vo.user_id}</td>
                    <td>{$vo.user_account}</td>
                    <td>{:xsfn_base64_decode($vo.nickname)}</td>
                    <td>{$vo.out_trade_no}</td>
                    <td>{$vo.amount}</td>
                    <td>{$vo.pay_channel}</td>
                    <td>{$vo.remark}</td>
                    <td>{$vo.create_time}</td>
                    <td>{$vo.status=='1'?'<span style="color:#090">成功</span>':'<span style="color:#F00">待支付</span>'}</td>
                </tr>
                {/foreach}
            </tbody>
        </table>
        <!--分页条-->
        {$list->render()}
    </div>
    <!-- /.box-body -->
</div>
{/block}